//Firefox profiles

import java.io.File;
import java.util.List;
import java.util.concurrent.TimeUnit;

import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;
import org.ini4j.Profile;
import org.junit.*;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxProfile;
import org.openqa.selenium.firefox.internal.ProfilesIni;

public class SSLcheck {
	
	@Test
	public void profiles() throws Exception{
		
		ProfilesIni allProfiles = new ProfilesIni();
		System.setProperty("webdriver.firefox.profile","default");
		String browserProfile = System.getProperty("webdriver.firefox.profile");
		FirefoxProfile profile = allProfiles.getProfile(browserProfile); 
		profile.setAcceptUntrustedCertificates(true);
		profile.setAssumeUntrustedCertificateIssuer(false);
		FirefoxDriver webdriver = new FirefoxDriver(profile);
		webdriver.get("https://www.google.com");
		}
}